import request from '@/utils/request'

// 获取账单统计数据
export function getBillStatistics() {
  return request({
    url: '/apartment/statistics/bill',
    method: 'get'
  })
}

// 获取公寓统计数据
export function getApartmentStatistics() {
  return request({
    url: '/apartment/statistics/apartment',
    method: 'get'
  })
}

// 获取设备统计数据
export function getDeviceStatistics() {
  return request({
    url: '/apartment/statistics/device',
    method: 'get'
  })
}

// 获取房态统计数据
export function getRoomStatistics() {
  return request({
    url: '/apartment/statistics/room',
    method: 'get'
  })
}

// 获取入住退房趋势数据
export function getTrendStatistics() {
  return request({
    url: '/apartment/statistics/trend',
    method: 'get'
  })
}

export default {
  getBillStatistics,
  getApartmentStatistics,
  getDeviceStatistics,
  getRoomStatistics,
  getTrendStatistics
} 